home *** CD-ROM | disk | FTP | other *** search
/ .net 2000 August / NET74.ISO / pc / Software / JavaApplet / AnfyMacBeta1.sea / Anfy for Macintosh / anjavapp / wobbler / wobbler.txt < prev    next >
Encoding:
Text File  |  1999-07-05  |  7.7 KB  |  235 lines  |  [TEXT/ttxt]

  1.  
  2.  
  3.           Anfy Wobbler - Copyright (C) by Fabio Ciucci 1998/99
  4.  
  5.  
  6. This applet can wobble any GIF or JPG image of any size.
  7.  
  8. It is based on original code by Jetro Lauha, which is used under a licence.
  9.  
  10. Due to particular optimisations, the applet size must be a multiple of 8,
  11. in both width and height.
  12.  
  13. Regarding image size, any size is allowed, but there are particular sizes:
  14. 32x32 , 64x64, 128x128 or 256x256 which are the best ones, because applet will
  15. run a lot faster. We strongly suggest to load an image with one of the sizes
  16. listed.
  17.  
  18. ****************************************************************************
  19.  
  20. NECESSARY FILES.
  21.  
  22. The following 3 ".class" files must be uploaded: 
  23.  
  24. wobbler.class
  25. Lware.class
  26. anfy.class.
  27.  
  28. Plus, wobbler.jar for speedy loading on recent browsers.
  29.  
  30. ***************************************************************************
  31.  
  32. EXAMPLE.
  33.  
  34. Insert the <applet> tag in your html document as follows to add this applet
  35. to your page (Comments after the ";" symbol are code explanations and
  36. acceptable min/max values. They are not part of the applet language):
  37.  
  38.  
  39. <applet archive="wobbler.jar" code="wobbler.class" width="200" height="200">
  40. <param name="credits" value="Applet by Fabio Ciucci (www.anfyteam.com)">
  41. <param name="regcode" value="NO">          ; Registration code (if you have it)
  42. <param name="reglink" value="NO">          ; Optional URL link when the applet
  43.                                            is "clicked".
  44. <param name="regnewframe" value="YES">         ; Reglink opened in new frame?
  45. <param name="regframename" value="_blank">     ; Name of new frame for reglink
  46. <param name="statusmsg" value="Rotator applet"> ; Statusbar message
  47. <param name="image" value="dossi.jpg">         ; Image to load
  48. <param name="res" value="1">                   ; resolution (1-8)
  49. <param name="initialdistance" value="3.0">     ; Initial distance (0.01 .. 500)
  50. <param name="zoomspeed" value="0.1">           ; Zoom speed (0.0 .. 50.0)
  51. <param name="mindistance" value="5.0">         ; Min Distance (0.01 .. 500)
  52. <param name="maxdistance" value="20.0">        ; Max Distance (0.01 .. 500)
  53. <param name="radius" value="400.0">            ; Radius in pixels
  54. <param name="wavestrength" value="8.0">        ; Wave Strength
  55. <param name="spd1" value="40.0">               ; Speed 1
  56. <param name="spd2" value="30.0">               ; Speed 2
  57. <param name="spd3" value="50.0">               ; Speed 3
  58. <param name="spd4" value="40.0">               ; Speed 4
  59. <param name="xmove" value="200">               ; X speed (0 .. 1000)
  60. <param name="ymove" value="200">               ; Y speed (0 .. 1000)
  61. <param name="variationstart" value="0">        ; Starting sine variation
  62. <param name="variationmove" value="10">        ; Variation speed (0 .. 1000)
  63. <param name="precision" value="high">          ; Precision ("high" or "low")
  64. <param name="overimg" value="NO">              ; Optional image over applet
  65. <param name="overimgX" value="0">              ; Over image X offset
  66. <param name="overimgY" value="0">              ; Over image Y offset
  67. <param name="memdelay" value="1000">         ; Memory deallocation delay
  68. <param name="priority" value="3">            ; Task priority (1..10)
  69. <param name="MinSYNC" value="10">            ; Min. milliseconds/frame for sync
  70. Sorry, your browser doesn't support Java.  ; Message for no java browsers.
  71. </applet>                                  ; End of applet tag
  72.  
  73. ******************************************************************************
  74.  
  75. INSTRUCTIONS.
  76.  
  77. The following instructions describe how to change parameters:
  78.  
  79. Attempting to change the "credits" parameter will disable the applet.
  80.  
  81. To activate the reg parameters, please read the shareware registration notes.
  82. In the "regcode" parameter, place the registration code you purchased from 
  83. the author. If the code is correct and the applet is run from the registered 
  84. domain name, you can use "link" parameters to link to a URL when the applet 
  85. is mouse-clicked.
  86.  
  87. If you set "regnewframe" to "YES", you can specify a specific frame location
  88. for the reglink:
  89.  
  90. "_blank"  : To load the link in a new blank unnamed browser window.
  91. "_self"   : To load the link into the same window the applet occupies.
  92. "_parent" : To load the link into the immediate FRAMESET parent.
  93. "_top"    : To load the link into the top body of the window.
  94.  
  95. You can also set a custom frame name, such as "myframe1".
  96.  
  97. With the "overimg" parameter you can specify the name of an image that will
  98. be painted over the applet. The best options are transparent GIF images.
  99. NOTE: Animated GIF images are supported, but will be animated only on latest 
  100. browsers (Netscape 4 and Explorer 4 or newer).
  101.  
  102. With "overimgX" and "overimgY" you can center the image over the applet area.
  103.  
  104. The GIF or JPEG image can be of any size, but we strongly suggest these:
  105. 32x32 , 64x64, 128x128 or 256x256, because applet will run a lot faster.
  106.  
  107. The size of the applet is determined by the width and height tags, and can be
  108. different from the size of the image. Just remember to choose a multiple of 8 
  109. for both width and height values, or applet will have problems and black borders.
  110.  
  111. The "res" parameter determines the resolution: with res=1 pixels are small,
  112. but effect is slow. With res=8 pixels are too big but the effect is faster.
  113. Optimum choices are 1-3.
  114.  
  115. To configure the wobbler in order to display different effects, you have
  116. to change the many parameters it has, but unfortunately there is not a way
  117. to explain how all behave, because of the non-linear math behind this applet
  118. and the unpredictable results.
  119.  
  120. The best option is to experiment yourself, starting from some of the examples
  121. provided:
  122.  
  123. *********************************************************************************
  124.  
  125. SAMPLE VALUES.
  126.  
  127. The default wobbler:
  128.  
  129.  initialdistance = 3.0
  130.  zoomspeed =       0.1
  131.  mindistance =     5.0
  132.  maxdistance =    20.0
  133.  radius =        400.0
  134.  wavestrength =    8.0
  135.  spd1 =           40.0
  136.  spd2 =           30.0
  137.  spd3 =           50.0
  138.  spd4 =           40.0
  139.  xmove =         200
  140.  ymove =         200
  141.  variationstart =  0
  142.  variationmove =  10
  143.  
  144.  
  145. Concentric waves (water like):
  146.  
  147.  initialdistance = 5.0
  148.  zoomspeed =       0.0
  149.  mindistance =     5.0
  150.  maxdistance =     5.0
  151.  radius =        400.0
  152.  wavestrength =  102.0
  153.  spd1 =          120.0
  154.  spd2 =          140.0
  155.  spd3 =            0.4
  156.  spd4 =           10.0
  157.  xmove =           0
  158.  ymove =           0
  159.  variationstart =  0
  160.  variationmove = 200
  161.  
  162.  
  163. Something like a star:
  164.  
  165.  initialdistance = 80.0
  166.  zoomspeed =        0.0
  167.  mindistance =     80.0
  168.  maxdistance =     80.0
  169.  radius =          40.0
  170.  wavestrength =     0.0
  171.  spd1 =            10.0
  172.  spd2 =        100000.0
  173.  spd3 =            10.0
  174.  spd4 =            10.0
  175.  xmove =          200
  176.  ymove =          200
  177.  variationstart =   0
  178.  variationmove =  100
  179.  
  180.  
  181. Mapping over a sphere:
  182.  
  183.  initialdistance = 12.0
  184.  zoomspeed =        0.0
  185.  mindistance =     12.0
  186.  maxdistance =     12.0
  187.  radius =         220.0
  188.  wavestrength =     0.0
  189.  spd1 =          1000.0
  190.  spd2 =          1000.0
  191.  spd3 =            10.0
  192.  spd4 =            10.0
  193.  xmove =          200
  194.  ymove =          200
  195.  variationstart =   0
  196.  variationmove =   30
  197.  
  198.  
  199. A breathing surface:
  200.  
  201.  initialdistance = 10.0
  202.  zoomspeed =        0.3
  203.  mindistance =      2.0
  204.  maxdistance =     20.0
  205.  radius =         380.0
  206.  wavestrength =     0.0
  207.  spd1 =            10.0
  208.  spd2 =            10.0
  209.  spd3 =            10.0
  210.  spd4 =            10.0
  211.  xmove =            0
  212.  ymove =          200
  213.  variationstart =   0
  214.  variationmove =   10
  215.  
  216.  
  217. Metallic reflection:
  218.  
  219.  initialdistance = 6.0
  220.  zoomspeed =       0.4
  221.  mindistance =     2.0
  222.  maxdistance =    22.0
  223.  radius =       4000.0
  224.  wavestrength =   16.0
  225.  spd1 =            5.8
  226.  spd2 =           20.0
  227.  spd3 =            1.4
  228.  spd4 =          100.0
  229.  xmove =         140
  230.  ymove =         140
  231.  variationstart =  0
  232.  variationmove =  10
  233.  
  234.  
  235.